package aop;

import org.springframework.aop.ThrowsAdvice;

public class logThrowsAdvice implements ThrowsAdvice {
	
	//ThrowsAdvice没有方法，但是实现类的方法
	//必须以“afterThrowing”命名
	public void afterThrowing(IllegalArgumentException e) throws Throwable{
		MyLogger logger = new MyLogger();
		
		logger.log("IllegalArgumentException！");
	}
}



